/************************************************************************************
*
*  By JobGoo@gmail.com
*************************************************************************************/
#ifndef __icm_3_dup_h__
#define __icm_3_dup_h__

#ifdef __cplusplus
extern "C" {
#endif

#include <icm_3.h>

typedef unsigned long long ICM_ENTRY_ID;

#define ICM_INVALIDATE_ID (ICM_ENTRY_ID)-1

ICM_ENTRY_ID icm_get_entry();
void icm_put_entry(ICM_ENTRY_ID e_id);

int icm_put_entry(ICM_ENTRY_ID e_id, unsigned int len, const char *buf);
int icm_get_addr(ICM_ENTRY_ID e_id,  unsigned int items, BLOCK_ADDR_INFO* add_list);


#ifdef __cplusplus
}
#endif

#endif

